This example shows how to add items to print dialogs. This code is based upon the code originally contained in TN #95 and PR09. It is now in TechNote 1080, only in C. Note that in v1.0.2, a bug was corrected which is now fixed in Tech Note 108000.
- Apple Developer Technical Support
10/9/91… v1.0
2/25/92… v1.0.1 --> fixed lack of print handle tossing and added something to print.<dmh>
9/29/93… v1.0.2 --> fixed a problem with the Append_DITL routine which caused an
extra 2 bytes of garbage to be appended to the DITL. <dmh>
6/20/95… v1.0.3 --> updated for Universal Headers and MWC-PPC <njvt>
11/16/95 v1.0.4 --> updated to use CallPItemProc() and PItemUPP. Make it fully ANSI.
Explicitly include needed headers, so back-port to MPW is easier.
<davep>
6/10/96… v1.1 --> Probably shoulda bumped to 1.1 at 1.0.4, but better late than never.
Update version resources, and make the buttonn we add open another
dialog with yet more stuff in it. Added balloon help to demonstrate
how that works, too.<davep>
8/21/96… v1.1.1 --> Added the list for a sample <mxm>
9/3/96… v1.1.2 --> Change list handling to match recommendations of LW8 engineering.
• NOTE: To append help for the items you're appending to the print dialog, you have to use a 'HMScanAppendhdlg' item. This type isn't readily available from Resorcerer or ResEdit, so that's why I switched to Rez source for the resources. <davep>
• Another NOTE: As of System 7.5.3, neither our Append_DITL nor the system version handles appending of 'ictb' or 'dctb's correctly. This is a bug that's planned to be fixed in the future, but I'm warning you about it here. <davep>